<!DOCTYPE HTML>
<html>
    <head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>

		<script src="resources/sap-ui-core.js"
				id="sap-ui-bootstrap"
				data-sap-ui-libs="sap.m"
				data-sap-ui-theme="sap_bluecrystal">
		</script>
		<!-- only load the mobile lib "sap.m" and the "sap_bluecrystal" theme -->

		<script>
			sap.ui.localResources("zmmbe");
			var app = new sap.m.App("myApp",{initialPage:"idselectView"});
			var selectPage = sap.ui.view({id:"idselectView", viewName:"zmmbe.selectView", type:sap.ui.core.mvc.ViewType.JS});
			var plantPage = sap.ui.view({id:"idplantView", viewName:"zmmbe.plantView", type:sap.ui.core.mvc.ViewType.JS});
			var locationPage = sap.ui.view({id:"idlocationView", viewName:"zmmbe.locationView", type:sap.ui.core.mvc.ViewType.JS});
			var chartPage = sap.ui.view({id:"idchartView", viewName:"zmmbe.chartView", type:sap.ui.core.mvc.ViewType.JS});
			app.addPage(selectPage).addPage(plantPage).addPage(locationPage).addPage(chartPage);
			app.placeAt("content");	
			
			
			// global value
			var oJSONModel=new sap.ui.model.json.JSONModel();
		    oJSONModel.setData({
		   		matnr: "",   
		    }); 
		    sap.ui.getCore().setModel(oJSONModel); 
		</script>

	</head>
	<body class="sapUiBody" role="application">
		<div id="content"></div>
	</body>
</html>